import request from '@/utils/request'

// 查询苹果退款记录列表
export function listAppleRefund(query) {
  return request({
    url: '/order/appleRefund/list',
    method: 'get',
    params: query
  })
}

// 查询苹果退款记录详细
export function getAppleRefund(id) {
  return request({
    url: '/order/appleRefund/' + id,
    method: 'get'
  })
}

// 新增苹果退款记录
export function addAppleRefund(data) {
  return request({
    url: '/order/appleRefund',
    method: 'post',
    data: data
  })
}

// 修改苹果退款记录
export function updateAppleRefund(data) {
  return request({
    url: '/order/appleRefund',
    method: 'put',
    data: data
  })
}

// 删除苹果退款记录
export function delAppleRefund(id) {
  return request({
    url: '/order/appleRefund/' + id,
    method: 'delete'
  })
}
